]> dgit.raspbian.org Git - gnome-shell.git/commit
calendar: Ensure clicked calendar item retains key focus
authorTanner Doshier <doshitan@gmail.com>
Tue, 30 Apr 2013 22:32:43 +0000 (17:32 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 4 May 2013 03:20:02 +0000 (23:20 -0400)
commit31478e9fb441d8cb8d2b45bfd84a02091b9ea4d1
treeda6f7bf54a10fbe92f2bce3aac4ae6e27c020f8e
parentcc7630c236936b1debe3fb4988e560a5ed8fa349
calendar: Ensure clicked calendar item retains key focus

The date actors get destroyed and recreated on every date change which drops
key focus for the selected date. Restore key focus in such a case, but only
when the selected date was actually clicked. Whenever the next/prev month
buttons code is used (for scrolling, mouse click, or keyboard click), have
the corresponding button grab focus. Changing months currently causes the
calendar to update twice as the eventSource gets changed, so key focus gets
lost if it is on a date when the month changes.

https://bugzilla.gnome.org/show_bug.cgi?id=667434
js/ui/calendar.js